import request from '@/utils/request'
import qs from 'qs'

export function findAgentInfoByAgentNo(data) {
    return request({
        url: '/agent/findAgentInfoByAgentNo',
        method: 'post',
        data
    })
}
export function appStatisPosAct(data) {
    return request({
        url: '/terminal/appStatisPosAct',
        method: 'get',
        params:data
    })
}
export function appStatisCust(data) {
    return request({
        url: '/cust/appStatisCust',
        method: 'get',
        params: data
    })
}
export function appStatisTerminalDayAndMonth(data:any) {
    return request({
        url: '/terminal/appStatisTerminalDayAndMonth',
        method: 'get',
        params: data
    })
}
export function queryAllTimeRecently(data) {
    return request({
        url: '/transStatistic/getQueryAllTimeRecently',
        method: 'get',
        params: data
    })
}
// 查询所有活动
export function findByTargetAndClassesId(data:any) {
    return request({
        url: '/marktingConfig/findByTargetAndClassesId',
        method: 'get',
        params: data
    })
}
export function appRankStatisTerminalDayAndMonth(data) {
    return request({
        url: '/terminal/appRankStatisTerminalDayAndMonth',
        method: 'get',
        params: data
    })
}
export function appStatisCustDayAndMonth(data) {
    return request({
        url: '/cust/appStatisCustDayAndMonth',
        method: 'get',
        params: data
    })
}
export function appRankStatisCustDayAndMonth(data) {
    return request({
        url: '/cust/appRankStatisCustDayAndMonth',
        method: 'get',
        params: data
    })
}
export function toView(data) {
    return request({
        url: '/agent/findAgentInfoByAgentNo',
        method: 'post',
        data
    })
}
